"""
VegaCMS module
"""

__all__ = ['generators','globals',
           'template','settings' ]

from template import Template


import cgi

def run() :
    "Runs "
    ## FIXME: Find fancier way to print headers
    print "Content-type: text/plain\n\n",

    try :
        form = cgi.FieldStorage()
        t = Template('/main.html')
        if form.has_key('path') :
            pass
        else :
            #print t.render({})
            t.dump()
            print '----'
            print t.render({
                'title' : 'AAAAAAAAAA',
                'll' : ['1',1212,'aaaaaaa',[1,2,3,]],
                })
    except : 
        raise
